<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:84:"D:\phpStudy\PHPTutorial\WWW\circle\public/../application/api\view\activity\info.html";i:1524019267;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta charset="utf-8">
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
        <meta content="yes" name="apple-mobile-web-app-capable">
        <meta content="black" name="apple-mobile-web-app-status-bar-style">
        <meta content="telephone=no" name="format-detection">
        <title>活动详情</title>
        <link href="/qz/bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link href="/qz/bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
        <link rel="stylesheet" href="/qz/assets/frozenui-1.3.0/css/frozen.css">
        <link rel="stylesheet" type="text/css" href="/qz/assets/css/style.css" />
    </head>

    <body class="body">
        <div>
            <!-- <img src="/qz/assets/img/img_zhanweitu4.3.png" class="img" /> -->
            <img src="<?php echo $activity['poster']; ?>"  class="img" />
        </div>
 
        <div class="introduce">
            <h1 class="overTitleLine"><?php echo $activity['name']; ?></h1>
            <p class="marginT18"> <span class="color565656"><?php echo $activity['site']; ?> | 时长<?php echo $activity['time']; ?>h</span><span class="colorFea802 floatR fontS18">¥<?php echo $activity['fee']; ?></span></p>
        </div>
        
        <div class="navigation">
            <p class="padding0_14 lineH50">
                <img src="/qz/assets/img/icon_map_s.png" class="mapMark" />
                <span class="color969696 fontS14"><?php echo $activity['city']; ?>.<?php echo $activity['site_address']; ?></span>
                <a href="javascript:;" class="floatR fontS14 color4c67ea">导航</a>
            </p>
        </div>
        
        <div class="introduce marginT40">
            <section>
                <h4>活动流程</h4>
                <div class="">
                    <?php if(is_array($activity['plan']) || $activity['plan'] instanceof \think\Collection || $activity['plan'] instanceof \think\Paginator): $i = 0; $__LIST__ = $activity['plan'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <ul class="ui-row ui-whitespace">
                        <li class="ui-col ui-col-33 paddingR textAR fontS14 color696969 marginT20">
                            <label class="ui-label"><?php echo $vo['time']; ?></label>
                        </li>
                        <li class="ui-col ui-col-67 textAL fontS14 color565656 lineH28 marginT20"><?php echo $vo['body']; ?></li>
                    </ul>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </section>
            <section class="tripDescription marginT40">
                <h4><?php echo $activity['desc_title']; ?></h4>
                <div class="marginT20">
                    <p class="marginT18 color565656 lineH28"><?php echo $activity['desc']; ?></p>
                   <!--  <?php if(is_array($activity['desc']) || $activity['desc'] instanceof \think\Collection || $activity['desc'] instanceof \think\Paginator): $i = 0; $__LIST__ = $activity['desc'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['type'] == 'img'): ?>
                           <img src="<?php echo $vo['body']; ?>" class="img marginT15" />
                       <?php else: ?>
                           <p class="marginT18 color565656 lineH28"><?php echo $vo['body']; ?></p>
                       <?php endif; endforeach; endif; else: echo "" ;endif; ?> -->
                </div>
            </section>
            <section class="tripDescription marginT40">
                <h4>费用包含</h4>
                <div class="marginT20">
                    <p class="marginT18 color565656 lineH28"><?php echo $activity['include']; ?><!-- 美国哈佛大学心理学课程认证-国学文化艺术沙龙讲座报名开始啦！美国哈佛大学心理学课程认证-国学文化艺术沙龙讲座报名开始啦！ --></p>
                </div>
            </section>
            <section class="tripDescription marginT40">
                <h4>活动须知</h4>
                <div class="marginT20">
                    <?php echo $activity['notes']; ?>
                    <!-- <ul>
                        <li class="color565656 lineH28 fontS14">1.美国哈佛大学心理学课程认证</li>
                        <li class="color565656 lineH28 fontS14">2.美国哈佛大学心理学课程认证</li>
                    </ul> -->
                </div>
            </section>
            <section class="tripDescription marginT40">
                <h4>商家日程</h4>
                <div class="marginT20 form_date">
                    
                </div>
            </section>
        </div>
        <script type="text/javascript" src="/qz/assets/js/jquery-1.11.3.min.js"></script>
        <script type="text/javascript" src="/qz/bootstrap/js/bootstrap.js"></script>
        <script type="text/javascript" src="/qz/bootstrap/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
        <script type="text/javascript" src="/qz/bootstrap/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
        <script>
              $(function(){
                var datesDisabled = <?php echo $activity['selected_time']; ?>;
                //var datesDisabled = ['2018-11-26','2018-1-23'];
                console.log(datesDisabled)
                $('.form_date').datetimepicker({
                            language:  'zh-CN',
                            weekStart: 1, //一周从哪一天开始。0（星期日）到6（星期六）;Integer. 默认值：0 
                            startDate:new Date(),
                            todayBtn:  1,
                            autoclose: 1,
                            todayHighlight: 1,
                            startView: 2,
                            minView: 2,
                            forceParse: 0,
                            datesDisabled:datesDisabled,
                            format: "yyyy-mm-dd"
                        })
                        $('.form_date').datetimepicker('show');
              })

              $(".navigation").click(function(e){
                   window.location.href = 'http://api.map.baidu.com/marker?location='+<?php echo $activity['latitude']; ?>+','+<?php echo $activity['longitude']; ?>+'&title=<?php echo $activity['site_address']; ?>&content=<?php echo $activity['site_address']; ?>&output=html'; 
              })
        </script>
    </body>
</html>